<!DOCTYPE html>
<html>
    <head>
        <title>Issue 2886: JavaScript search field doesn't find some code</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript">
        // if (!(accidental-regexp))
        // keyword2
        // keyword 1
        var i=10; // just to have some JavaScript on this page.
        </script>
    </head>
    <body>
        <header>
            <h1><a href="http://code.google.com/p/fbug/issues/detail?id=2886">Issue 2886</a>:
                JavaScript search field doesn't find some code</h1>
        </header>
        <div>
            <section id="description">
                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Open Firebug and enable the <em>Script</em> panel</li>
                    <li>Reload the page</li>
                    <li>Focus the search field</li>
                    <li>
                        Type <code>(!(accidental-regexp))</code><br/>
                        <span class="ok">&rArr; There should be one match at line 8</span>
                    </li>
                    <li>Check the <em>Use Regular Expression</em> search option</li>
                    <li>
                        Search for <code>keyword\s+\d+</code><br/>
                        <span class="ok">&rArr; There should be one match at line 10</span>
                    </li>
                </ol>
                <h3>Expected result</h3>
                <ul>
                    <li>Search should always match correctly in case of regular expressions</li>
                </ul>
            </section>
            <footer>Jan Odvarko, odvarko@gmail.com</footer>
        </div>
    </body>
</html>
